package main.java.zemo.game;


public class DuckCorridor extends Command{

	/**
	 * @uml.property  name="aCorridorAndRoom"
	 * @uml.associationEnd  inverse="duckCorridor:ACorridorAndRoom"
	 */
	private ACorridorAndRoom aCorridorAndRoom;

	/**
	 * Getter of the property <tt>aCorridorAndRoom</tt>
	 * @return  Returns the aCorridorAndRoom.
	 * @uml.property  name="aCorridorAndRoom"
	 */
	public ACorridorAndRoom getACorridorAndRoom() {
		return aCorridorAndRoom;
	}

	/**
	 * Setter of the property <tt>aCorridorAndRoom</tt>
	 * @param aCorridorAndRoom  The aCorridorAndRoom to set.
	 * @uml.property  name="aCorridorAndRoom"
	 */
	public void setACorridorAndRoom(ACorridorAndRoom aCorridorAndRoom) {
		this.aCorridorAndRoom = aCorridorAndRoom;
	}
	public DuckCorridor(ACorridorAndRoom aCorridorAndRoom){
		this.aCorridorAndRoom=aCorridorAndRoom;		
	}
	public void execute(Player p){
		aCorridorAndRoom.duck(p);
	}

}
